#include "cingredientcategory.h"

using namespace cooking;

CIngredientCategory::CIngredientCategory(QObject *parent) :
    CObject(parent)
{
//    m_id = KInvalidId;
    m_description = KNullString;
    m_name = KNullString;
    m_picture = KNullString;
}

//int CIngredientCategory::id() {
//    return m_id;
//}

//void CIngredientCategory::setId(int id) {
//    if (m_id != id) {
//        m_id = id;
//        emit idChanged();
//    }
//}

QString CIngredientCategory::name() {
    return m_name;
}

void CIngredientCategory::setName(QString name) {
    if (m_name != name) {
        m_name = name;
        emit nameChanged();
    }
}

QString CIngredientCategory::description() {
    return m_description;
}

void CIngredientCategory::setDescription(QString desc) {
    if (m_description != m_description) {
        m_description = desc;
        emit descriptionChanged();
    }
}

QString CIngredientCategory::picture() {
    return m_picture;
}

void CIngredientCategory::setPicture(QString picture) {
    if (m_picture != picture) {
        m_picture = picture;
        emit pictureChanged();
    }
}
